package com.ych.adapter;

/**
 * 新的适配接口实现
 * Created by 灰灰 on 2017/7/3.
 */
public class Adapter implements Target{

    private Adaptee adaptee;

    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }
    @Override
    public void adapteeMethod() {
        this.adaptee.adapteeMethod();
    }

    @Override
    public void adapterMethod() {
        System.out.println("新增接口");
    }
}
